﻿using DataStructure;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Collections;

namespace DataStructure.Test
{
    
    
    /// <summary>
    ///This is a test class for SStringTest and is intended
    ///to contain all SStringTest Unit Tests
    ///</summary>
    [TestClass()]
    public class SStringTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for SString Constructor
        ///</summary>
        [TestMethod()]
        public void SStringConstructorTest()
        {
            string s = string.Empty; // TODO: Initialize to an appropriate value
            SString target = new SString(s);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for SString Constructor
        ///</summary>
        [TestMethod()]
        public void SStringConstructorTest1()
        {
            SString s = null; // TODO: Initialize to an appropriate value
            SString target = new SString(s);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for SString Constructor
        ///</summary>
        [TestMethod()]
        public void SStringConstructorTest2()
        {
            char[] s = null; // TODO: Initialize to an appropriate value
            SString target = new SString(s);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for ClearStr
        ///</summary>
        [TestMethod()]
        public void ClearStrTest()
        {
            char[] s = null; // TODO: Initialize to an appropriate value
            SString target = new SString(s); // TODO: Initialize to an appropriate value
            target.ClearStr();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Concat
        ///</summary>
        [TestMethod()]
        public void ConcatTest()
        {
            char[] s = null; // TODO: Initialize to an appropriate value
            SString target = new SString(s); // TODO: Initialize to an appropriate value
            IString s1 = null; // TODO: Initialize to an appropriate value
            IString expected = null; // TODO: Initialize to an appropriate value
            IString actual;
            actual = target.Concat(s1);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetEnumerator
        ///</summary>
        [TestMethod()]
        public void GetEnumeratorTest()
        {
            char[] s = null; // TODO: Initialize to an appropriate value
            SString target = new SString(s); // TODO: Initialize to an appropriate value
            IEnumerator<char> expected = null; // TODO: Initialize to an appropriate value
            IEnumerator<char> actual;
            actual = target.GetEnumerator();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Index
        ///</summary>
        [TestMethod()]
        public void IndexTest()
        {
            char[] s = null; // TODO: Initialize to an appropriate value
            SString target = new SString(s); // TODO: Initialize to an appropriate value
            IString s1 = null; // TODO: Initialize to an appropriate value
            int pos = 0; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.Index(s1, pos);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Replace
        ///</summary>
        [TestMethod()]
        public void ReplaceTest()
        {
            char[] s = null; // TODO: Initialize to an appropriate value
            SString target = new SString(s); // TODO: Initialize to an appropriate value
            IString s1 = null; // TODO: Initialize to an appropriate value
            IString t = null; // TODO: Initialize to an appropriate value
            IString expected = null; // TODO: Initialize to an appropriate value
            IString actual;
            actual = target.Replace(s1, t);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for StrCompare
        ///</summary>
        [TestMethod()]
        public void StrCompareTest()
        {
            char[] s = null; // TODO: Initialize to an appropriate value
            SString target = new SString(s); // TODO: Initialize to an appropriate value
            IString s1 = null; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.StrCompare(s1);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for StrCopy
        ///</summary>
        [TestMethod()]
        public void StrCopyTest()
        {
            char[] s = null; // TODO: Initialize to an appropriate value
            SString target = new SString(s); // TODO: Initialize to an appropriate value
            IString expected = null; // TODO: Initialize to an appropriate value
            IString actual;
            actual = target.StrCopy();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for StrEmpty
        ///</summary>
        [TestMethod()]
        public void StrEmptyTest()
        {
            char[] s = null; // TODO: Initialize to an appropriate value
            SString target = new SString(s); // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.StrEmpty();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for StrInsert
        ///</summary>
        [TestMethod()]
        public void StrInsertTest()
        {
            char[] s = null; // TODO: Initialize to an appropriate value
            SString target = new SString(s); // TODO: Initialize to an appropriate value
            int pos = 0; // TODO: Initialize to an appropriate value
            IString s1 = null; // TODO: Initialize to an appropriate value
            IString expected = null; // TODO: Initialize to an appropriate value
            IString actual;
            actual = target.StrInsert(pos, s1);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for StrLength
        ///</summary>
        [TestMethod()]
        public void StrLengthTest()
        {
            char[] s = null; // TODO: Initialize to an appropriate value
            SString target = new SString(s); // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.StrLength();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for SubStr
        ///</summary>
        [TestMethod()]
        public void SubStrTest()
        {
            char[] s = null; // TODO: Initialize to an appropriate value
            SString target = new SString(s); // TODO: Initialize to an appropriate value
            int pos = 0; // TODO: Initialize to an appropriate value
            int len = 0; // TODO: Initialize to an appropriate value
            IString expected = null; // TODO: Initialize to an appropriate value
            IString actual;
            actual = target.SubStr(pos, len);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for System.Collections.IEnumerable.GetEnumerator
        ///</summary>
        [TestMethod()]
        [DeploymentItem("DataStructureInCs.exe")]
        public void GetEnumeratorTest1()
        {
            char[] s = null; // TODO: Initialize to an appropriate value
            IEnumerable target = new SString(s); // TODO: Initialize to an appropriate value
            IEnumerator expected = null; // TODO: Initialize to an appropriate value
            IEnumerator actual;
            actual = target.GetEnumerator();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
